package cnpm.service.impl;

import java.util.List;

import cnpm.dao.BrandBankDAO;
import cnpm.dao.impl.BrandBankDAOImpl;
import cnpm.entity.Bank;
import cnpm.entity.BrandBank;
import cnpm.service.BrandBankService;

public class BrandBankServiceImpl implements BrandBankService {

	private BrandBankDAO bbDAO;
	
	public BrandBankServiceImpl(){
		bbDAO = new BrandBankDAOImpl();
	}
	
	@Override
	public List<BrandBank> getAllBrandBank(Bank bank) {
		return bbDAO.getAllBrandBank(bank);
	}

	@Override
	public BrandBank getBrandBak(int brandID) {
		return bbDAO.getBrandBak(brandID);
	}

}
